package main

import (
	"fmt"
	"k8s.io/client-go/util/workqueue"
)

func main(){
	q := workqueue.NewRateLimitingQueue(workqueue.DefaultControllerRateLimiter())

	q.AddRateLimited("bobo")
	//q.Add("jiang")

	i,_ := q.Get()
	fmt.Println("ok",i)
	q.Add("jiang")

	q.Done(i)

	i,_ = q.Get()

	q.Done(i)

	fmt.Println("ok",i)

}
